#ifdef GLOBAL_VARIABLES_HERE
#undef EXTERN
#define EXTERN
#endif

EXTERN int ticks;

EXTERN int disp_pos;
EXTERN u8 gdt_ptr[6];
EXTERN struct descriptor gdt[GDT_SIZE];
EXTERN u8 idt_ptr[6];
EXTERN struct gate idt[IDT_SIZE];

EXTERN u32 k_reenter;

EXTERN int nr_current_console;

EXTERN struct tss tss;
EXTERN struct proc *p_proc_ready;

extern char task_stack[];
extern struct proc proc_table[];
extern struct task task_table[];
extern struct task user_proc_table[];
extern irq_handler irq_table[];
extern TTY tty_table[];
extern CONSOLE console_table[];

EXTERN struct file_desc f_desc_table[NR_FILE_DESC];
EXTERN struct inode inode_table[NR_INODE];
EXTERN struct super_block super_block[NR_SUPER_BLOCK];

extern u8 * fsbuf;
extern const int FSBUF_SIZE;
EXTERN MESSAGE fs_msg;
EXTERN struct proc *pcaller;
EXTERN struct inode *root_inode;
extern struct dev_drv_map dd_map[];
